// API配置文件
export const API_CONFIG = {
  // 开发环境
  development: {
    baseURL: 'https://localhost:7174/api',
    timeout: 10000
  },
  // 生产环境
  production: {
    baseURL: 'https://your-production-domain.com/api',
    timeout: 15000
  },
  // 测试环境
  test: {
    baseURL: 'https://your-test-domain.com/api',
    timeout: 10000
  }
}

// 根据当前环境获取配置
const getCurrentConfig = () => {
  const env = import.meta.env.MODE || 'development'
  return API_CONFIG[env as keyof typeof API_CONFIG] || API_CONFIG.development
}

// 导出当前配置
export const currentApiConfig = getCurrentConfig()

// 导出默认配置
export default currentApiConfig 